//
//  SEGHLBPublishViewModel.h
//  SEGViewModel
//
//  Created by 梁学彰 on 2020/11/16.
//

#import <Foundation/Foundation.h>
#import "SEGSHManager.h"

typedef NS_ENUM(NSUInteger, SEGHLBPublishVCDisplayStyle) {
    SEGHLBPublishVCHelpDisplayStyle,
    SEGHLBPublishVCShareDisplayStyle,
    SEGHLBPublishVCMarketDisplayStyle
};

#define kSEGHLBPublishImageTableViewCell @"SEGHLBPublishImageTableViewCell"
#define kSEGHLBPublishContentTableViewCell @"SEGHLBPublishContentTableViewCell"
#define kSEGHLBPublishTitleTableViewCell @"SEGHLBPublishTitleTableViewCell"
#define kSEGHLBPublishMarketTableViewCell @"SEGHLBPublishMarketTableViewCell"
#define kSEGHLBPublishLocationTableViewCell @"SEGHLBPublishLocationTableViewCell"

NS_ASSUME_NONNULL_BEGIN

@interface SEGHLBPublishViewModel : NSObject

//相片相关
@property (nonatomic, strong) NSMutableArray *savePicArray; ///< 保存图片的数组
@property (nonatomic, strong) NSMutableArray *saveUrlArray; ///< 保存上传图片后的URL数组
@property (nonatomic, assign) NSInteger photoMaxCount; ///< 用于子类修改最大图片数 默认6

// 分类相关
@property (nonatomic, assign) SEGEnumIdelExchange classifyType;///< 大分类ID(聊一聊，求助，还是集市)
@property (nonatomic, copy) NSString *classId; ///<  分类ID ，选择的二级分类id


// 其他数据
@property (nonatomic, assign) BOOL hasSubmit; ///< 是否已上传
@property (nonatomic, copy) NSString *goodsId; ///< 商品ID
@property (nonatomic, strong) SEGSHManager* sHManager;
@property (nonatomic, strong) NSArray *cellKeyArray; ///< 要展示的cell的identifer
@property (nonatomic, assign) BOOL hasFillInfo; ///< 是否已填充信息（编辑时）

- (void)initDataWithDisplayType:(SEGHLBPublishVCDisplayStyle )disPlayType;

- (RACSignal *)publishNeihborhoodShareDataWithDisplayType:(SEGHLBPublishVCDisplayStyle)displayType contentText:(NSString *)text;


- (RACSignal *)submitGoodsIdelWithDict:(NSDictionary *)dic title:(NSString *)title titleTextFieldText:(NSString *)titleTextFieldText contentTextViewText:(NSString *)contentText publishStatus:(SEGPublishStatus)publishStatus;
@end

NS_ASSUME_NONNULL_END
